package sivan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import sivan.aspect.RateLimit;

@Controller
public class UserController {

    public UserController(){
        System.out.println("初始化UserController=============");
    }

    @RequestMapping("user.do")
    @ResponseBody
    @RateLimit(limintNum = 1)
    public String getName() {
        System.out.println("===============================");
        return "index";
    }
}
